export default {
  /**
   * 对象数组去重
   * @param row
   * @returns {any[]|*[]}
   */
  filterDuplicate (row) {
    if (!row || !row instanceof Array || row.length === 0) {
      return []
    }

    return [...new Set(row.map(t => JSON.stringify(t)))].map(s => JSON.parse(s))
  }
}